﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.title = "Get Airports";
}

<div class="container">

    <div class="blog-header">
        <h1 class="blog-title">Aveiro Airlines Managment System</h1>
        <p class="lead blog-description">API Documentation - Airports</p>
    </div>

    <div class="row">

        <div class="col-sm-8 blog-main">

            <div class="blog-post">
                <h2 class="blog-post-title">About this section</h2>
                <p>
                    In this documentation you can find information about the method that can supply the list of available airports supported by AAMS.
                    At this point AAMS API only implements one method that is responsible to supply the list of airports registered in the application.
                </p>

                </ul>

                <h2>Get the airports list</h2>
                <p>
                    Use the following specification to get the airport list from AAMS API.
                </p>
                <h3>URI</h3>
                <pre><code>http://192.168.160.18/AveiroAirlines/api/Airport/GetAll</code></pre>
                <h3>Method type</h3>
                <pre><code>GET</code></pre>
                <h3>Header parameters</h3>
                <p>
                    Provide your API key token as a header parameter with the name "token".
                </p>
                <pre><code>"token"</code></pre>
                <h3>URL Parameters</h3>
                <p>
                    <em>Not required</em>
                </p>
                <h3>Response type</h3>
                <p>
                    List of available airports supported by the application
                </p>
                <pre><code>[
    {
        "AirportName": "Barajas",
        "AirportCity": "Madrid"
    },
    {
        "AirportName": "Portela",
        "AirportCity": "Lisboa"
    }
]</code></pre>

                <h3>Example using <a href="https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm">POSTMAN</a></h3>
                <p>
                    The following image is an example of a call to this API service using POSTMAN
                </p>
                <a href="~/Images/POSTMAN-Airports-GetAll.PNG">
                    <img src="~/Images/POSTMAN-Airports-GetAll.PNG" class="img-thumbnail" alt="Responsive image" />
                </a>
            </div><!-- /.blog-post -->

            <ul class="pager">
                <li>@Html.ActionLink("Prev. - Home Page", "", "Home")</li>
                <li>@Html.ActionLink("Next - Flight Search documentation", "", "FlightSearch")</li>
            </ul>

        </div><!-- /.blog-main -->

        <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
            <div class="sidebar-module sidebar-module-inset">
                <h4>About the authors</h4>
                <p>This page and all its content were developed by <em>José Brazeta</em>, <em>Luis Carta</em> and <em>João Martins</em> as an assignment for Advanced Web Programing (AEP), a course of the master degree in Information Systems at Aveiro University
            </div>
            <div class="sidebar-module">
                <h4>Other information:</h4>
                <ol class="list-unstyled">
                    <li><a href="#">AAMS Main Page</a></li>
                    <li><a href="#">Capsule CRM API</a></li>
                    <li><a href="#">Kashflow Main Page</a></li>
                </ol>
            </div>
            <div class="sidebar-module">
                <h4>Codeplex Repository</h4>
                <ol class="list-unstyled">
                    <li><a href="#">Get AAMS from Codeplex</a></li>
                </ol>
            </div>
        </div><!-- /.blog-sidebar -->

    </div><!-- /.row -->

</div>